home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / game / patch / ReLock.readme < prev    next >
Encoding:
Text File  |  1999-09-06  |  2.4 KB  |  65 lines

  1. Short:    Makes MuFS (+ others) accept weird locks
  2. Author:   nybo@softhome.net (Martin Nybo Andersen)
  3. Uploader: nybo@softhome.net (Martin Nybo Andersen)
  4. Version:  1.31
  5. Type:     game/patch
  6. Requires: OS 2.0 (V36)
  7.  
  8. __________________________________________________________________________________
  9.  
  10. Ever wanted to use AMOS on a MultiUserFS partition?
  11. Ever wanted to play Worms(DC) on a MultiUserFS partition?
  12. And what about all the other progs, which can't get files stored on your MuFS
  13. partition?
  14.  
  15. - - Here's the fix..!
  16.  
  17. - - - ---
  18.  
  19. Background:
  20.  
  21. AmigaDOS has a function to lock a file to prevent it from being altered while a
  22. program uses it. This lock can be defined in two ways:
  23.  
  24.  1: Shared    - for reading - ($fffffffe, or -2 for ordinary humans... :)
  25.  2: Exclusive - for writing - ($ffffffff, or -1 for ordinary humans... :)
  26.  
  27. Now there's just one little problem:
  28. What about all the other 4294967294 (2³²-2) different possibilities when using a
  29. 32bit integer?
  30.  
  31. FastFileSystem assumes that if it isn't an exclusive lock it must be a shared one.
  32. MultiUserFileSystem, on the other hand, concludes that if it isn't an exclusive or
  33. a shared lock, it simply can't be a valid lock.
  34.  
  35. MuFS's conclusion is perfectly okay, if it haven't been for all those dumb coders
  36. with too much lumpy gravy for brains --- FIX YOUR CODE NOW!!!
  37.  
  38. This little patch makes all filesystems act like FFS when dealing with locks.
  39.  
  40. - - - -Martin   http://www.amiga.dk/nybo    nybo@softhome.net
  41. __________________________________________________________________________________
  42.  
  43. Contents:
  44.  
  45. Original  Packed Ratio    Date     Time    Name
  46. -------- ------- ----- --------- --------  -------------
  47.      944     740 21.6% 03-Jul-99 23:48:40  ReLock/ReLock
  48.     3291    1708 48.1% 04-Jul-99 23:05:18  ReLock/ReLock.doc
  49.     1863     970 47.9% 04-Jul-99 23:04:12  ReLock/ReLock.readme
  50.       65      65  0.0% 04-Jul-99 14:36:54  ReLock/ReLock.sig
  51. -------- ------- ----- --------- --------
  52.     6163    3483 43.4% 04-Jul-99 23:07:28   4 files
  53.  
  54.  
  55. ============================= Archive contents =============================
  56.  
  57. Original  Packed Ratio    Date     Time    Name
  58. -------- ------- ----- --------- --------  -------------
  59.      944     740 21.6% 03-Jul-99 23:48:40 +ReLock
  60.     3291    1708 48.1% 04-Jul-99 23:05:18 +ReLock.doc
  61.     1863     970 47.9% 04-Jul-99 23:04:12 +ReLock.readme
  62.       65      65  0.0% 04-Jul-99 14:36:54 +ReLock.sig
  63. -------- ------- ----- --------- --------
  64.     6163    3483 43.4% 09-Jul-99 21:59:04   4 files
  65.